﻿using System;
using System.Collections.Generic;
using System.Text;
using HotelDal;
using HotelDal.DishDAL;
using Model;
using IHodelBll;
using IHotelDal;

namespace HodelBll
{
    public class DishBLL : IDishiBll
    {
        IDish _dal;

        public DishBLL(IDish dish)
        { 
           _dal = dish;
        }
        /// <summary>
        /// 新增菜品
        /// </summary>
        /// <param name="dishesInfo"></param>
        /// <returns></returns>
        public int AddDish(DishesInfo dishesInfo)
        {
            return _dal.AddDish(dishesInfo);
        }
        /// <summary>
        /// 添加点菜单
        /// </summary>
        /// <param name="dishedInfo"></param>
        /// <returns></returns>
        public int AddDished(DishedInfo dishedInfo)
        {
            return _dal.AddDished(dishedInfo);
        }
        /// <summary>
        /// 添加菜品销售单
        /// </summary>
        /// <param name="dishSales"></param>
        /// <returns></returns>
        public int AddDishSale(DishSalesInfo dishSales)
        {
            return _dal.AddDishSale(dishSales);
        }
        /// <summary>
        /// 删除菜品
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DelDish(int id)
        {
            return _dal.DelDish(id);
        }
        /// <summary>
        /// 显示菜品列表
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public List<DishesInfo> GetDishes()
        {
            return _dal.GetDishes();
        }

        /// <summary>
        /// 显示菜品分类
        /// </summary>
        /// <returns></returns>
        public List<DishLei> GetDishLeis()
        {
            return _dal.GetDishLeis();
        }

        /// <summary>
        /// 显示菜品销售单
        /// </summary>
        /// <returns></returns>
        public List<DishSalesInfo> GetDishSales()
        {
            return _dal.GetDishSales();
        }

        /// <summary>
        /// 修改菜品价格
        /// </summary>
        /// <param name="dishes"></param>
        /// <returns></returns>
        public int UpDishPrice(DishesInfo dishes)
        {
            return _dal.UpDishPrice(dishes);
        }
    }
}
